<script setup>
import { ref } from 'vue'

defineOptions({
  name: 'ShopLogin'
})
const isLogin = ref(true)
const togIsLogin = (value) => (isLogin.value = value)
</script>

<template>
  <div>
    <shopNavbar :title="isLogin ? '用户登录' : '新用户注册'"></shopNavbar>
    <img src="@/assets/img/logo.png" class="d-block mx-auto my-5" />
    <loginForm :isLogin="isLogin" @togIsLogin="togIsLogin"></loginForm>
  </div>
</template>

<style lang="scss" scoped></style>
